package com.yx.modules.api.service.impl;

import com.yx.modules.api.dao.TbCommentDianzanRecordDao;
import com.yx.modules.api.entity.TbCommentDianzanRecord;
import com.yx.modules.api.service.TbCommentDianzanRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TbCommentDianzanRecordServiceImpl implements TbCommentDianzanRecordService {
	@Autowired
	private TbCommentDianzanRecordDao commentDianzanRecordDao;
	
	@Override
	public TbCommentDianzanRecord queryObject(Integer id){
		return commentDianzanRecordDao.queryObject(id);
	}
	
	@Override
	public List<TbCommentDianzanRecord> queryList(Map<String, Object> map){
		return commentDianzanRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return commentDianzanRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(TbCommentDianzanRecord commentDianzanRecord){
		commentDianzanRecordDao.save(commentDianzanRecord);
	}
	
	@Override
	public void update(TbCommentDianzanRecord commentDianzanRecord){
		commentDianzanRecordDao.update(commentDianzanRecord);
	}
	
	@Override
	public void delete(Integer id){
		commentDianzanRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		commentDianzanRecordDao.deleteBatch(ids);
	}


	@Override
	public TbCommentDianzanRecord findBookRcord(Integer userId, Integer id) {
		return commentDianzanRecordDao.findBookRcordByUserAndComment(userId,id);
	}

}
